package org.example.day20240820;

public class Point {
    int x;
    int y;

    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public boolean isiru(Point point1, Point point2){
        if(this.x <= point1.x && this.x >= point2.x && this.y <= point1.y && this.y >= point2.y){
            return true;
        }else{
            return false;
        }
    }
}
